package com.atguigu.gmall.service;

import com.alipay.api.AlipayApiException;
import com.atguigu.gmall.entity.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface PaymentInfoService extends IService<PaymentInfo> {

    String createQrCode(Long orderId) throws AlipayApiException;

    PaymentInfo getPaymentInfo(String outTradeNo, String paymentType);

    void updatePaymentInfo(String outTradeNo, String paymentType, Map<String, String> paramMap);

    boolean refund(Long orderId) throws AlipayApiException;

    boolean closeAlipayTrade(Long orderId) throws AlipayApiException;

    boolean queryAlipayTrade(Long orderId) throws AlipayApiException;
}
